﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="RankingAvanceFinanMon.aspx.vb" Inherits="Devida_RankingAvanceFinanMon" Theme="Yahoo-Ocean" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
<asp:Label id="lblTitulo" runat="server" ForeColor="White" Font-Size="Large" Font-Bold="true" Width="600px" >Ranking avance financiero por monitoreador</asp:Label>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table cellpadding="0" cellspacing="0" style="width:900px; margin:0; padding:0;">
<tr>
<td>
<div id="Principal" style="width:900px;">
<fieldset id="fsPrincipal" runat="server" style="width:895px; height:50px; border:1px solid #99aabd">   
<table style="width:900px" cellpadding="0" cellspacing="0" >
</br>
<tr>
<td align="left" style="width:100px">
    <asp:Label ID="Label2" runat="server" CssClass="label" Text="Periodo:"></asp:Label>
</td>
<td align="left" style="width:700px">
    <asp:DropDownList ID="ddlPeriodo" runat="server" CssClass="ddl" AutoPostBack="true">
    </asp:DropDownList>
</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td>
<table style="width:900px" cellpadding="0" cellspacing="0">
<tr>
<td align="left" style="width:150px">
<asp:ImageButton ID="btnGenerar" runat="server" ToolTip="Generar Avance Financiero Semanal" ImageUrl="~/Imagenes/btnGenerar.png" style="height: 23px"  />                               
</td>
<td align="left">
<asp:ImageButton ID="btnExportar" runat="server" ToolTip="Exportar Reporte" ImageUrl="~/Imagenes/btnExportar.png" style="height: 23px"  /> 
</td>
<td align="right">
<asp:ImageButton ID="btnCerrar" runat="server"  ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Salir" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="DivReporte" runat="server" style="width:900px; margin:0; padding:0; display:none;" >
<fieldset id="Fieldset1" runat="server" style="width:900px; text-align:left; margin:0; padding:0; border:1px solid #99aabd">  
<table style="width:900px; text-align:left;" cellpadding="0" cellspacing="0">
<tr>
<td>
<table style="width:900px; text-align:left; background-color: #BDD2E8; text-align:center" cellpadding="0" cellspacing="0">
<tr>
<td style="width:45px; border: 1px solid #666666; padding:0; text-align:center">PPER
</td>
<td style="border-width: 1px; border-color: #666666; width:52px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">Ranking
</td>
<td style="border-width: 1px; border-color: #666666; width:176px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">Monitoreador
</td>
<td style="border-width: 1px; border-color: #666666; width:89px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">Presupuesto Manejado (A)
</td>
<td style="border-width: 1px; border-color: #666666; width:90px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">Monto girado acumulado (B)
</td>
<td style="border-width: 1px; border-color: #666666; width:90px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">% Avance girado C=(A/B)
</td>
<td style="border-width: 1px; border-color: #666666; width:70px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">Peso relativo   D=(A/Total)
</td>
<td style="border-width: 1px; border-color: #666666; width:90px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">N° Actividades
</td>
<td style="border-width: 1px; border-color: #666666; width:90px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">N° ejecutores
</td>
<td style="border-width: 1px; border-color: #666666; width:90px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid;">Desempeño <br />  (C x D)
</td>
</tr>
</table>
<asp:GridView ID="gvRanking" runat="server" Width="100%" AutoGenerateColumns="false" ShowHeader="false" AlternatingRowStyle-Wrap="False">
<Columns>
<asp:TemplateField>
<ItemStyle Width="50px" />
<ItemTemplate >
<asp:Label ID="lblPPER" runat="server" Text='<%# Eval("ABREVIATURA") %>'></asp:Label>
<asp:HiddenField ID="hfPPER" runat="server" Value='<%# Eval("PPER") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>Detalle</HeaderTemplate>
<ItemStyle HorizontalAlign="Justify" Width="850px" />
<ItemTemplate>
<asp:GridView ID="gvDetalle" runat="server" Width="850px" ShowHeader="false" OnRowDataBound="RDB" ShowFooter="true" AutoGenerateColumns="false" AlternatingRowStyle-Wrap="False">
<Columns>
<asp:TemplateField HeaderText="Ranking">
    <ItemTemplate>
        <%# Container.DataItemIndex + 1 %>
    </ItemTemplate>
    <ItemStyle Width="49px" />
</asp:TemplateField>
<asp:BoundField DataField="MONITOREADOR" HeaderText="Monitoreador" ItemStyle-Width="179px" ItemStyle-HorizontalAlign="Left" ></asp:BoundField>
<asp:BoundField DataField="PRESUPUESTO_MANEJADO" HeaderText="Presupuesto Manejado (A)" ItemStyle-Width="90px" DataFormatString="{0:N0}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
<asp:BoundField DataField="MONTO_GIRADO_ACUMULADO" HeaderText="Monto girado acumulado (B)" ItemStyle-Width="91px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" ></asp:BoundField>
<asp:BoundField DataField="PORCENTAJE_AVANCE_GIRADO" HeaderText="% Avance girado C=(A/B)" ItemStyle-Width="90px" DataFormatString="{0:P0}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
<asp:BoundField DataField="PESO_RELATIVO" HeaderText="Peso relativo  D=(A/Total)" ItemStyle-Width="71px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" ></asp:BoundField>
<asp:BoundField DataField="NUM_ACTIVIDADES" HeaderText="N° Actividades" ItemStyle-Width="92px" DataFormatString="{0:N0}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
<asp:BoundField DataField="NUM_EJECUTORES" HeaderText="N° ejecutores" ItemStyle-Width="92px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" ></asp:BoundField>
<asp:BoundField DataField="DESEMPENO" HeaderText="Desempeño (C x D)" ItemStyle-Width="89px" DataFormatString="{0:P3}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
</Columns>
<FooterStyle Font-Bold="true" Font-Size="11pt" />
</asp:GridView>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
</table>
<uc1:Alerta ID="alerta" runat="server"></uc1:Alerta>
</asp:Content>

